package com.ds;

import com.ds.common.JDSConstants;
import com.ds.common.JDSException;
import com.ds.common.logging.Log;
import com.ds.common.logging.LogFactory;
import com.ds.esb.util.EsbFactory;
import com.ds.server.JDSServer;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

public class JDSInit extends HttpServlet {
    private static final Log logger = LogFactory.getLog(
            JDSConstants.CONFIG_KEY, JDSInit.class);


    public void init() throws ServletException {
        System.out.println(">>>>>>>>>>>>>>启动");
        try {
            JDSServer.getInstance();
            EsbFactory.initBus();


        } catch (JDSException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }

}
